<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>HTML to GWT class converter</title>

    <style type="text/css">
        #output
        {
            height: 170px;
            width: 583px;
        }
        #source
        {
            height: 170px;
            width: 583px;
        }
        .header{
        	font-family:Helvetica;
        	font-weight:bold;
        	font-size:14pt;
        	text-align:center;
        }
        .title{
        	font-family:Arial;
        	font-weight:bold;
        	font-size:12pt;
        }
    </style>
</head>
<body>
<% String source = (String)request.getAttribute("source");
   if(source == null) source = "";
   String output = (String)request.getAttribute("output");
   if(output == null) output = "";%>

    <p class="header">
        Convert a String to a Java string variable</p>
    
    <form id="convertform" method="post" action="convert">
    <input type="hidden" name="converter" value="htmltogwt"/>
    <p><label>Class Name:</label><input type="text" name="classname" value="<%= request.getAttribute("classname") == null ? "": request.getAttribute("classname") %>"/></p>
    <p><label>Class Package:</label><input type="text" name="package" value="<%= request.getAttribute("package") == null ? "": request.getAttribute("package") %>"/></p>
    <p class="title">
        Enter your html below</p>
        <p><textarea id="source" name="source" style="width:100%"><%= source %></textarea></p>
    <p>
        <input id="convert" type="submit" value="Convert"  /></p></form>
    <p class="title">
        The output will appear below</p>
    <p>
        <textarea id="output" name="output" style="width:100%"><%= output %></textarea></p>

</body>
</html>